<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

<c:if test="${hasContent}">
    <div class="page">
        <a href="#">首页</a>
        <a href="#">上一页</a>
        <a href="#" class="cur">1</a>
        <a href="#">2</a>
        <a href="#">3</a>
        ...
        <a href="#">4</a>
        <a href="#">下一页</a>
        <a href="#">尾页</a>
    </div>
</c:if>